package day16.reflectdemo01;

/**
 * @author Xiao
 * @date 2021/8/10
 */
public class ReflectDemo {
    public static void main(String[] args) throws ClassNotFoundException {
        Class<?> aClass = Class.forName("day16.reflectdemo01.Student");
        Class<Student> aClass1 = Student.class;
        Class<? extends Student> aClass2 = new Student().getClass();
         // class day16.reflectdemo01.Student
         // class day16.reflectdemo01.Student
         // class day16.reflectdemo01.Student
        System.out.println(aClass);
        System.out.println(aClass1);
        System.out.println(aClass2);
        // true  true
        System.out.println(aClass == aClass1);
        System.out.println(aClass1 == aClass2);
    }
}
